﻿using System.Collections.ObjectModel;

namespace KouDai.WinPad.Helper
{
    public class GroupCollection<T> : ObservableCollection<T>
    {
        //public GroupCollection(string name)
        //{
        //    this.Title = name;
        //}

        public GroupCollection(object key)
        {
            this.Key = key;
        }

        //public string Title { get; set; }
        public object Key { get; set; }

        public bool HasItems
        {
            get
            {
                return (Count != 0);
            }
            private set { }
        }
    }
}
